package com.auto.autoapp.network

import com.auto.autoapp.data.model.ApiResponse
import com.auto.autoapp.data.model.UserInfo
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface Api {

    @POST("User/LoginByName")
    suspend fun login(
        @Body map: MutableMap<String, String>
    ): ApiResponse<UserInfo>

    @GET("BasePm/GetDetail")
    suspend fun getSetting(@Query(value = "pmtype") type: String): ApiResponse<SettingInfo>

    @POST("BasePm/Post")
    suspend fun setSetting(
        @Body map: MutableMap<String, String>
    ): ApiResponse<String>
}